using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace Framework.Repository
{
    public interface IRepository<T>
        where T : class
    {
        IEnumerable<T> Where(Expression<Func<T, bool>> filter);
        void Delete(params T[] items);
        void Delete(Expression<Func<T, bool>> filter);
        void Save(params T[] items);
        IEnumerable<T> ToList();
    }
}